From: Kenichi Handa Date: Tue, 27 Jan 2004 07:34:18 +0000 (+0000) Subject: (fill-delete-newlines): Don't add a space if a X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24353 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=65170a2b825e93d677e8fafdeb4a65252344b26b;p=emacs.git (fill-delete-newlines): Don't add a space if a setence ends with one of a character in sentence-end-without-space. --- diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 69b17f677ff..5aded4a85e8 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -423,9 +423,13 @@ Point is moved to just past the fill prefix on the first line." ((string-match "\\[[^][]*\\(\\.\\)[^][]*\\]" sentence-end) (concat (replace-match ".:" nil nil sentence-end 1) "$")) ;; Can't find the right spot to insert the colon. - (t "[.?!:][])}\"']*$")))) + (t "[.?!:][])}\"']*$"))) + (sentence-end-without-space-list + (string-to-list sentence-end-without-space))) (while (re-search-forward eol-double-space-re to t) (or (>= (point) to) (memq (char-before) '(?\t ?\ )) + (memq (char-after (match-beginning 0)) + sentence-end-without-space-list) (insert-and-inherit ?\ )))) (goto-char from)